
import { request } from '@ruifox-cms/utils'

// 查询所有文件夹
export function folderSelectAll(params) {
  return request({
    url: '/resource/share/selectAll',
    method: 'get',
    params
  })
}
// 查询分页文件夹
export function folderSelectPage(params) {
  return request({
    url: '/resource/share/selectPage',
    method: 'get',
    params
  })
}
// 根据id查询文件夹
export function folderSelectById(params) {
  return request({
    url: '/resource/share/selectById',
    method: 'get',
    params
  })
}
// 根据id查询
export function selectPageFolderAndResourceById(params) {
  return request({
    url: '/resource/share/selectPageFolderAndResourceById',
    method: 'get',
    params
  })
}
// 新增文件夹
export function folderCreate(data) {
  return request({
    url: '/resource/share/create',
    method: 'post',
    data
  })
}
// 批量删除
export function folderDelete(data) {
  return request({
    url: '/resource/share/deleteList',
    method: 'post',
    data
  })
}
// 修改文件夹
export function folderUpdate(data) {
  return request({
    url: '/resource/share/update',
    method: 'post',
    data
  })
}
// 文件夹排序
export function folderUpdateSort(data) {
  return request({
    url: '/resource/share/updateSort',
    method: 'post',
    data
  })
}
// 查看所有团队
export function providerGroupSelectList(params) {
  return request({
    url: '/provider/group/selectList',
    method: 'get',
    params
  })
}
// 分页查询用户
export function providerUserSelectPage(params) {
  return request({
    url: '/provider/user/selectPage',
    method: 'get',
    params
  })
}